package org.zfes.snowier.cloud.zbss.cms.tag.service;

import java.util.Map;
import java.util.Optional;
import org.zfes.snowier.core.data.DataSet;
import org.zfes.snowier.cloud.zbss.cms.tag.model.CmsTag;
public interface ICmsTagService{

	 Optional<CmsTag> loadCmsTagById(Long id);
	
	 void createCmsTag(CmsTag cmsTag);
	
	 void updateCmsTag(CmsTag cmsTag);

	 void deleteCmsTag(Long id);
	
	 DataSet loadCmsTagDataSet(Map<String, Object> params);
	 

 	void setCmsTagStatus(Long id, Byte status);
 	

	Optional<CmsTag> loadCmsTagListByTagName(String tagName,Long siteId);

	void makeRefCountTotal(String tagName, Long siteId);
	void subtractRefCountTotal(String tagIds);
}